using System;
using System.Collections.Generic;


namespace Gfw.Models.Account
{
	[Serializable]
	public partial class ActCompanyCash: IEquatable<ActCompanyCash>
	{

		#region Private Members

		private string _id; 
		private string _userid; 
		private string _bankname; 
		private string _bankcardno; 
		private string _bankusername; 
		private decimal _money; 
		private DateTime? _requiredate; 
		private string _checkerid; 
		private DateTime? _checkdate; 
		private string _handlerid; 
		private int _status; 
		private decimal _taxation; 
		private string _taxationserialno; 
		private string _bankserialno; 
		private string _tradeabstract; 		
		#endregion

		#region Constructor

		public ActCompanyCash()
		{
			_id = String.Empty; 
			_userid = String.Empty; 
			_bankname = String.Empty; 
			_bankcardno = String.Empty; 
			_bankusername = String.Empty; 
			_money = 0; 
			_requiredate = null; 
			_checkerid = String.Empty; 
			_checkdate = null; 
			_handlerid = String.Empty; 
			_status = 0; 
			_taxation = 0; 
			_taxationserialno = String.Empty; 
			_bankserialno = String.Empty; 
			_tradeabstract = String.Empty; 
		}
		#endregion // End of Default ( Empty ) Class Constuctor

		#region Public Properties
			
		public virtual string Id
		{
			get
			{ 
				return _id;
			}

			set	
			{	
				if( value == null )
					throw new ArgumentOutOfRangeException("Null value not allowed for Id", value, "null");
				
				if(  value.Length > 40)
					throw new ArgumentOutOfRangeException("Invalid value for Id", value, value.ToString());
				
				_id = value;
			}
		}
			
		public virtual string Userid
		{
			get
			{ 
				return _userid;
			}

			set	
			{	
				if( value == null )
					throw new ArgumentOutOfRangeException("Null value not allowed for Userid", value, "null");
				
				if(  value.Length > 40)
					throw new ArgumentOutOfRangeException("Invalid value for Userid", value, value.ToString());
				
				_userid = value;
			}
		}
			
		public virtual string BankName
		{
			get
			{ 
				return _bankname;
			}

			set	
			{	
				if(  value != null &&  value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for BankName", value, value.ToString());
				
				_bankname = value;
			}
		}
			
		public virtual string BankCardNo
		{
			get
			{ 
				return _bankcardno;
			}

			set	
			{	
				if(  value != null &&  value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for BankCardNo", value, value.ToString());
				
				_bankcardno = value;
			}
		}
			
		public virtual string BankUserName
		{
			get
			{ 
				return _bankusername;
			}

			set	
			{	
				if(  value != null &&  value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for BankUserName", value, value.ToString());
				
				_bankusername = value;
			}
		}
			
		public virtual decimal Money
		{
			get
			{ 
				return _money;
			}
			set
			{
				_money = value;
			}

		}
			
		public virtual DateTime? RequireDate
		{
			get
			{ 
				return _requiredate;
			}
			set
			{
				_requiredate = value;
			}

		}
			
		public virtual string Checkerid
		{
			get
			{ 
				return _checkerid;
			}

			set	
			{	
				if(  value != null &&  value.Length > 40)
					throw new ArgumentOutOfRangeException("Invalid value for Checkerid", value, value.ToString());
				
				_checkerid = value;
			}
		}
			
		public virtual DateTime? CheckDate
		{
			get
			{ 
				return _checkdate;
			}
			set
			{
				_checkdate = value;
			}

		}
			
		public virtual string Handlerid
		{
			get
			{ 
				return _handlerid;
			}

			set	
			{	
				if(  value != null &&  value.Length > 40)
					throw new ArgumentOutOfRangeException("Invalid value for Handlerid", value, value.ToString());
				
				_handlerid = value;
			}
		}
			
		public virtual int Status
		{
			get
			{ 
				return _status;
			}
			set
			{
				_status = value;
			}

		}
			
		public virtual decimal Taxation
		{
			get
			{ 
				return _taxation;
			}
			set
			{
				_taxation = value;
			}

		}
			
		public virtual string TaxationSerialNo
		{
			get
			{ 
				return _taxationserialno;
			}

			set	
			{	
				if(  value != null &&  value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for TaxationSerialNo", value, value.ToString());
				
				_taxationserialno = value;
			}
		}
			
		public virtual string BankSerialNo
		{
			get
			{ 
				return _bankserialno;
			}

			set	
			{	
				if(  value != null &&  value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for BankSerialNo", value, value.ToString());
				
				_bankserialno = value;
			}
		}
			
		public virtual string TradeAbstract
		{
			get
			{ 
				return _tradeabstract;
			}

			set	
			{	
				if(  value != null &&  value.Length > 256)
					throw new ArgumentOutOfRangeException("Invalid value for TradeAbstract", value, value.ToString());
				
				_tradeabstract = value;
			}
		}
			
				
		#endregion 

		#region Public Functions

		#endregion //Public Functions

		#region IEquatable members

		public virtual bool Equals(ActCompanyCash other)
		{
			if (other == this)
				return true;
		
			return ( other != null ) &&
				( this._id == other.Id );
				   
		}

		#endregion
		
	}
}
